import request from '@/utils/request'

export function addConfigData(data) {
  return request({
    url: '/sys-service/inner-api/sys/config-data',
    data: data,
    method: 'post'
  })
}

export function delConfigData(id) {
  return request({
    url: '/sys-service/inner-api/sys/config-data/' + id,
    method: 'delete'
  })
}

export function updateConfigData(data) {
  return request({
    url: '/sys-service/inner-api/sys/config-data',
    data: data,
    method: 'put'
  })
}

export function getConfigData(id) {
  return request({
    url: '/sys-service/inner-api/sys/config-data/' + id,
    method: 'get'
  })
}

export function pageConfigData(data) {
  return request({
    url: '/sys-service/inner-api/sys/config-data/page',
    method: 'post',
    data: data
  })
}
